var initialState = {
    count:0,
    count1:0,
    lists:[]
}

//第二层reducer
function reducer(state={count:0,count1:0},action){
    switch(action.type) {
        case "INCREASE":
            // return {count: state.count + 1}
            return Object.assign({},state,{count:state.count + 1})
        case "DECREASE":
            // return {count1: state.count1 - 1}
            return Object.assign({},state,{count1:state.count1 - 1})
        case "GETDATAS":
            return Object.assign({},state,{lists: action.data})
        default:
            return state;
    }
}
export default reducer;